webpack = require 'webpack'
path = require 'path'
TransferWebpackPlugin = require 'transfer-webpack-plugin'

module.exports = {
    context: __dirname + '/app'
    entry:
        app:'./app.coffee'
    output:
        path: 'build',
        filename: "[name].js",
    module:
        loaders: [
            {test: /\.coffee$/, loader: "coffee"}
            {test: /\.css$/, loader: "style!css"}
            {test: /\.(jpg|png)$/, loader: "url?limit=8192"}
            {test: /\.scss$/, loader: "style!css!sass"}
        ]
    plugins: [
        new webpack.optimize.CommonsChunkPlugin('common.js')
        new TransferWebpackPlugin([
            {from: '.'}
        ], path.resolve(__dirname,"app/tpl"))
        new TransferWebpackPlugin([
            {from: '.'}
        ], path.resolve(__dirname,"app/assets"))
    ]
};
